#include <xp/bas/string.h>
#include <xp/bas/stdio.h>
#include <string.h>

int xp_main ()
{
	xp_printf (XP_TEXT("%u\n"), (unsigned)xp_strcspn (XP_TEXT("this is a real life"), XP_TEXT("ta")));	
	xp_printf (XP_TEXT("%u\n"), (unsigned)strcspn ("this is a real life", "ta"));	
	xp_printf (XP_TEXT("%u\n"), (unsigned)xp_strcspn (XP_TEXT("this is a real life"), XP_TEXT("abcd")));	
	xp_printf (XP_TEXT("%u\n"), (unsigned)strcspn ("this is a real life", "abcd"));	

	return 0;
}
